package com.gxa.modules.model.entity.hospital;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 院区表
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 11:20:15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_hospital_park")
@ApiModel(value = "HospitalPark对象", description = "院区表")
public class HospitalPark implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("医院园区主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("院区名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("电话2")
    @TableField("tel2")
    private String tel2;

    @ApiModelProperty("电话1")
    @TableField("tel1")
    private String tel1;

    @ApiModelProperty("通勤路线")
    @TableField("commuter_routes")
    private String commuterRoutes;

    @ApiModelProperty("院区所在市级")
    @TableField("city")
    private String city;

    @ApiModelProperty("院区所在区级")
    @TableField("district")
    private String district;

    @ApiModelProperty("院区所在街道")
    @TableField("street")
    private String street;

    @ApiModelProperty("状态（0-正常，1-废弃）")
    @TableField("state")
    @JsonIgnore
    private Integer state;

    @ApiModelProperty("导航图片")
    @TableField("Image")
    private String image;

    @ApiModelProperty("逻辑删除（0-正常，1-删除）")
    @TableField("is_delete")
    @TableLogic
    @JsonIgnore
    private Integer isDelete;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
